-- GENERATED SPELL FOR [Magma Rager] --


function spell0_34086(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(64773,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34086', 515, 1)
end

function spell1_34086(pUnit, Event) --@Superheated Winds,n/a--
pUnit:FullCastSpellOnTarget(64746,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34086', 13250, 1)
end

function Sorts_34086(pUnit, Event)
local choix_sorts_34086 = math.random(0, 1)
if choix_sorts_34086 == 0 then
pUnit:RegisterEvent('spell0_34086', 1, 1)
end
if choix_sorts_34086 == 1 then
pUnit:RegisterEvent('spell1_34086', 1, 1)
end
end

function mob34086_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34086', math.random(1500, 3000), 1)
end

function mob34086_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34086_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34086_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34086, 1, 'mob34086_Action')
RegisterUnitEvent(34086, 2, 'mob34086_Leave')
RegisterUnitEvent(34086, 3, 'mob34086_Kill')
RegisterUnitEvent(34086, 4, 'mob34086_Die')
